﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FutureApp.Cms.Dto
{
    /// <summary>
    /// 发布消息输入参数Dto
    /// </summary>
    [AutoMapTo(typeof(Message))]
    public class CreateMessageInput : EntityDto<Guid>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        [StringLength(Message.MaxTitleLength, ErrorMessage = "标题超过长度限制")]
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [Required(ErrorMessage = "内容不能为空")]
        [StringLength(Message.MaxContentLength, ErrorMessage = "内容超过长度限制")]
        public string Content { get; set; }
    }
}
